﻿<UserControl x:Class="Charting.EmailControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Charting="clr-namespace:Charting">

  <FlowDocumentScrollViewer IsSelectionEnabled="False">
    <FlowDocument FontFamily="Calibri" Background="PaleGoldenrod">

<!--Colors #FFFFDE93 #FFF1AF22 #FF5E5E5E #FFCDCECD -->
      <BlockUIContainer >
         <Grid >
            <Border Background="#FFFFDE93" BorderBrush="#FFF1AF22" CornerRadius="20">
               <Label FontFamily="Cambria" FontSize="32" FontWeight="Bold" Foreground="#FFF1AF22" 
                      Margin="0,10,10,10" HorizontalAlignment="Center" VerticalAlignment="Center">Litware Inc</Label>
            </Border>
         </Grid>
      </BlockUIContainer>
      <Paragraph FontWeight="Bold" Name="paragraphFYTitle">Sales Forecast Approval Request for Fiscal Year</Paragraph>
      <BlockUIContainer >
        <Grid>
            <Border Background="#FFCDCECD" CornerRadius="20">
                <StackPanel Margin="5,0,0,0" >
                   <Label Name="labelSalesPerson" VerticalAlignment="Bottom">Sales Person: Michael J. Blythe</Label>
                   <Label Name="labelSalesTerritory" VerticalAlignment="Bottom">Territory: Northeast</Label>
                   <Label Name="labelSalesRegion" VerticalAlignment="Bottom">Region: USA</Label>
                   <Label Name="labelSalesManager" VerticalAlignment="Bottom">Sales Manager: Stephen Jiang</Label>
                   <Label Name="labelSubmitDate" VerticalAlignment="Bottom">Submission Date: 2/1/2008</Label>
                </StackPanel>
          </Border>
        </Grid>
      </BlockUIContainer>
      <Paragraph FontWeight="Bold">Submission Comments</Paragraph>
      <BlockUIContainer >
                <Grid>
                    <Border Background="#FFCDCECD"  CornerRadius="20">
                    <StackPanel Margin="8,8,8,8">
                        <TextBox Name="textBoxSubmitComments" MaxLines="10" MinLines="5" AcceptsReturn="False"  IsReadOnly="True"
                 VerticalScrollBarVisibility="Auto" ToolTip="Comments regarding the submitted forecast." 
                 IsUndoEnabled="False" AutoWordSelection="True" Background="#FFCDCECD" BorderBrush="Transparent" IsHitTestVisible="False"
                 >Here are my projections for the coming year.</TextBox>
                    </StackPanel>
                </Border></Grid>
            </BlockUIContainer>

      <Paragraph FontWeight="Bold">Sales for current Fiscal Year</Paragraph>
      <BlockUIContainer>
        <Grid>
          <Charting:Chart x:Name="ActualChart" Height="400"  />
        </Grid>
      </BlockUIContainer>
      
      <Paragraph FontWeight="Bold">Projected Sales for upcoming Fiscal Year</Paragraph>
      <BlockUIContainer>
        <Grid>
          <Charting:Chart x:Name="ProjectedChart" Height="400" />
        </Grid>
      </BlockUIContainer>

      <Paragraph FontWeight="Bold">Report Links</Paragraph>
   
      <Section LineHeight="2">
        <Paragraph><Hyperlink Name="ExcelLink" NavigateUri="http://moss.litwareinc.com/docs/sales%20reports/Forms/updated.aspx" Click="ExcelLink_Click">
            Sales Forecast Excel Library</Hyperlink></Paragraph>
        <Paragraph><Hyperlink Name="WordLink" NavigateUri="http://moss.litwareinc.com/docs/documents/Forms/AllItems.aspx" Click="WordLink_Click">
            View Executive Report</Hyperlink></Paragraph>
        <Paragraph><Hyperlink Name="SiteLink" NavigateUri="http://moss.litwareinc.com/docs" Click="SiteLink_Click">Sales Documents</Hyperlink></Paragraph>
      </Section>
      <Paragraph FontWeight="Bold">Reviewer's Comments</Paragraph>
      <BlockUIContainer>
        <TextBox Name="textBoxReviewComments" MinLines="5" AcceptsReturn="False"  IsUndoEnabled="True" IsReadOnly="False"
                 VerticalScrollBarVisibility="Visible" ToolTip="Comments from the Review." AutoWordSelection="True"></TextBox>
      </BlockUIContainer>
      <Section></Section>
  	  <BlockUIContainer>
  		<Grid >
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="0.30*" />
          <ColumnDefinition Width="0.05*" />
          <ColumnDefinition Width="0.30*" />
          <ColumnDefinition Width="0.05*" />
          <ColumnDefinition Width="0.30*" />
        </Grid.ColumnDefinitions>
        <Button Name="buttonAccept" Grid.Column="0" Margin="0,0,2.8421709430404E-14,0" HorizontalAlignment="Right" Width="80" Click="ButtonAccept_Click">Accept</Button>
		<Button Name="buttonChange" Grid.Column="2" Margin="0,0,-5.6843418860808E-14,0" HorizontalAlignment="Center" Width="130" Click="ButtonChange_Click">Request Changes</Button>
		<Button Name="buttonReject" Grid.Column="4" Margin="0,0,-5.6843418860808E-14,0" HorizontalAlignment="Left" Width="80" Click="ButtonReject_Click">Reject</Button>
      </Grid>
	  </BlockUIContainer> 
    </FlowDocument>
  </FlowDocumentScrollViewer>
</UserControl>
